package com.dynabook.ems.model.dto;

import com.dynabook.ems.common.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 根据工单ID查询样品列表请求DTO
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "工单样品列表查询请求", description = "根据工单ID查询绑定样品列表的请求参数")
public class WorkOrderSampleListRequest extends PageRequest {
    
    @ApiModelProperty(value = "工单号", example = "WO202501001", required = true)
    @NotBlank(message = "工单号不能为空")
    private String workOrderNumber;
    
    @ApiModelProperty(value = "搜索关键字", example = "CPU")
    private String searchText;
}